import service from "@/utils/request";

export function loginService(userAccount,password){
    return service({
        url:"/sysUser/login",
        method:"post",
        data:{userAccount,password}
    })
}

export function getUserInfoService(){
    // 调用后端接口，获取用户信息   
    return service({
        url:"/sysUser/info",
        method:"get",
    })
}

export function logoutService(){
    // 调用后端接口，获取用户信息   
    return service({
        url:"/sysUser/logout",
        method:"delete",
    })
}